module.exports = function ($scope, $state, $stateParams,$resource,$modal,FileUploader,toaster, $modalInstance, str) {
    console.log('第' + str + '条材料');
    $scope.rejectArr  = [];
    $scope.info = {
      'title' : ''
    };
    $scope.ok = function (){
        var dic = {'reject' : $scope.info.title, 'img' : str, 'state' : '0'};
        $scope.rejectArr.push(dic);
        console.log($scope.rejectArr);
        $modalInstance.close(dic);
    }
    $scope.cancel = function(){
        $modalInstance.close();
    }
}  